function timestampTodatetime(timestamp) {
    if (timestamp.toString().length < 13)
        timestamp *= 1000
    var date = new Date(timestamp);
    year = date.getUTCFullYear();
    //year = date.getFullYear();
    //year = date.getYear();
    month = date.getMonth().toString().padStart(2, '0');
    day = date.getDate().toString().padStart(2, '0');
    hour = date.getHours().toString().padStart(2, '0');
    minutes = date.getMinutes().toString().padStart(2, '0');
    seconds = date.getSeconds().toString().padStart(2, '0');

    //补0（填充字符串到目标长度）  使用 .toString().padStart(2, '0')
    //result = year + "-" + (month + 1 < 10 ? '0' + (month + 1) : month + 1) + "-" + day + " " + hour + ":" + minutes + ':' + seconds
    return year + "-" + month + "-" + day + " " + hour + ":" + minutes + ':' + seconds;
}


var language = {
    search: "搜索：",
    lengthMenu: "每页显示 _MENU_ 记录",
    zeroRecords: "没找到相应的数据！",
    info: "分页 _PAGE_ / _PAGES_ 共 _TOTAL_ 条",
    infoEmpty: "暂无数据！",
    infoFiltered: "(从 _MAX_ 条数据中搜索)",
    paginate: {
        first: "首页",
        last: "尾页",
        previous: "上一页",
        next: "下一页",
    }
}

